import axiosInstance from "@/api/axiosInstance"
import {objectToQueryParams} from "@/utils";


export const getOrderListByRequest = function (data) {
    const datas = objectToQueryParams(data)
    return axiosInstance.get(`/account/money/order?${datas}`);
};

export const getOrderDetailByOrderNum = function (data) {
    return axiosInstance.get(`/account/money/voucher?orderNum=${data}`);
};

export const cancelOrderByRequest = function (data) {
    return axiosInstance.post(`/account/money/cancelOrder`, data);
};
